Benjamin Otte [Fri, 24 Oct 2014 18:17:11 +0000 (20:17 +0200)]
css: Disallow bypassing value computation
This special code was added back in the days when computation wasn't
idemptotent. These days it is.
Also, the bypass code path is only used in fallback code that is pretty
much unused.
Benjamin Otte [Fri, 24 Oct 2014 17:58:54 +0000 (19:58 +0200)]
css: Remove unneeded header
Daniel Mustieles [Fri, 24 Oct 2014 17:18:54 +0000 (19:18 +0200)]
Updated Spanish translation
Matthias Clasen [Fri, 24 Oct 2014 12:30:10 +0000 (08:30 -0400)]
widget-factory: Add mnemonics in the prefs dialog
This helps testing the mmemonic label display in the inspector,
and is just good practice.
Matthias Clasen [Fri, 24 Oct 2014 11:49:37 +0000 (07:49 -0400)]
Inspector: Show more misc info about widgets
This adds clip area, accessible role, mapped, realize,
is-toplevel, child-visible, mnemonic labels and tick
callbacks to the displayed information.
Matthias Clasen [Fri, 24 Oct 2014 12:00:41 +0000 (08:00 -0400)]
Add private API to query tick callbacks
This information can be useful for debugging purposes.
Lapo Calamandrei [Fri, 24 Oct 2014 11:08:06 +0000 (13:08 +0200)]
widget-factory: set show-border to false on page 3 notebooks
Lapo Calamandrei [Fri, 24 Oct 2014 11:01:41 +0000 (13:01 +0200)]
Revert "Adwaita: axes borders of notebooks inside frame"
This reverts commit
01e6811776cf6ad8738f182972edbb84626d7fae.
This assumption doesn't work latelly
Мирослав Николић [Fri, 24 Oct 2014 08:38:56 +0000 (10:38 +0200)]
Updated Serbian translation
Chun-wei Fan [Fri, 24 Oct 2014 07:59:18 +0000 (15:59 +0800)]
Visual Studio Builds: Update "Installation"
Add the newly-added public headers for GDK and GTK into the list of files
to "install".
Chun-wei Fan [Fri, 24 Oct 2014 07:58:20 +0000 (15:58 +0800)]
Visual Studio Builds: Update the gtk3-demo Projects
The gtkglarea and sidebar demos have been added, so build them in the
projects. Note that the gtkglarea code is not usable under Windows at this
point as implementation is needed for the GDK-Win32 backend.
Chun-wei Fan [Fri, 24 Oct 2014 07:56:46 +0000 (15:56 +0800)]
Visual Studio Builds: Link to libepoxy
Patches have been submitted to the libepoxy project so that it can be built
under Visual Studio. This will allow the GDK, GTK and gtk3-demo projects
to build, but the gtkglarea code is not usable at this time as
implementation needs to be added to the GDK-Win32 backend for it.
Chun-wei Fan [Fri, 24 Oct 2014 04:53:15 +0000 (12:53 +0800)]
Fix Up Visual Studio Property Sheets
"Install" gdkbroadwaydisplay.h, as it is a public header of GDK Broadway,
also fix the MSVC 2010+ gtk-copy-gdk-broadway.props property sheet as a
'>' is missing. Sorry for not noting these issues earlier, as MSVC
Broadway builds were recently restored. My bad :|
Chun-wei Fan [Fri, 24 Oct 2014 04:23:31 +0000 (12:23 +0800)]
gtk/deprecated/gtkstatusicon.c: Fix Build on C89 Compilers
Declare variable at the top of the block, which is needed from the change
in commit
1bad7865.
Emmanuele Bassi [Thu, 23 Oct 2014 16:42:19 +0000 (17:42 +0100)]
docs: Add replacement example for ImageMenuItem
Otherwise we will be doomed to answer the question of how to replace
GtkImageMenuItem for all eternity.
Rico Tzschichholz [Wed, 22 Oct 2014 18:37:58 +0000 (20:37 +0200)]
gdkglcontext-x11: Use epoxy/glx.h rather then GL/glx.h
Rico Tzschichholz [Wed, 22 Oct 2014 18:35:35 +0000 (20:35 +0200)]
configure: wayland-egl drop version since it is part of mesa not wayland
Gábor Kelemen [Thu, 23 Oct 2014 10:50:50 +0000 (10:50 +0000)]
Updated Hungarian translation
Brion Vibber [Wed, 22 Oct 2014 12:36:23 +0000 (05:36 -0700)]
Fix to gtkstatusicon.c to allow building both X11 and Quartz backends
https://bugzilla.gnome.org/show_bug.cgi?id=739005
Joanmarie Diggs [Wed, 22 Oct 2014 03:15:17 +0000 (23:15 -0400)]
Implement support for ATK_STATE_HAS_TOOLTIP
https://bugzilla.gnome.org/show_bug.cgi?id=738982
Matthias Clasen [Thu, 23 Oct 2014 02:49:31 +0000 (22:49 -0400)]
Fix mispositioned window menu in hi-dpi
We always want to send the position in device pixels,
so apply the window scale before sending them out.
https://bugzilla.gnome.org/show_bug.cgi?id=738955
Chun-wei Fan [Wed, 22 Oct 2014 12:03:34 +0000 (20:03 +0800)]
gdk/broadway/toarray.pl: Fix Code Generation for MSVC
The current implementation of this script generate headers with \x-escaped
strings that can become too long (> 65535 characters) for Visual Studio
to consume, hence the build of broadwayd would break on Visual Studio.
This changes the script to instead format the string as an array of hex
characters, not unlike what GResource does, so that builds can continue as
normal on Visual Studio builds as well.
https://bugzilla.gnome.org/show_bug.cgi?id=739001
Emmanuele Bassi [Wed, 22 Oct 2014 20:20:52 +0000 (21:20 +0100)]
tests/gtk: Add GdkX11GLContext to the whitelist
We cannot create them directly anyway.
Emmanuele Bassi [Wed, 22 Oct 2014 20:17:37 +0000 (21:17 +0100)]
tests/a11y/about: Fix expected text
We recently changed the uppercase licensing text to lower case. The
reference test that checks the contents of the about dialog has to be
fixed to reflect that change.
Robert Ancell [Mon, 19 May 2014 22:03:30 +0000 (10:03 +1200)]
Gdk: add an experimental backend for mir
This is disabled by default. Enable with --enable-mir-backend.
This backend is a combined work of Robert Ancell and Ryan Lortie.
Chun-wei Fan [Wed, 22 Oct 2014 11:40:48 +0000 (19:40 +0800)]
Visual Studio Builds: Fix broadwayd Build
There is now a broadway-buffer.c source that needs to be built for this, so
add it into the projects. Since crypt() is no longer used, don't include
crypt.c in the builds, and so clean up the projects a bit.
Matthias Clasen [Wed, 22 Oct 2014 05:18:54 +0000 (01:18 -0400)]
Drop a reference to gtkthemingengineprivate.h
That file does not exist.
Matthias Clasen [Wed, 22 Oct 2014 03:05:17 +0000 (23:05 -0400)]
3.15.0
Matthias Clasen [Wed, 22 Oct 2014 05:11:34 +0000 (01:11 -0400)]
Add GtkSidebar to the widget gallery
Matthias Clasen [Wed, 22 Oct 2014 04:55:39 +0000 (00:55 -0400)]
Add GtkGLArea to the widget gallery
Matthias Clasen [Wed, 22 Oct 2014 04:45:22 +0000 (00:45 -0400)]
GtkSidebar: Make docs show up
Matthias Clasen [Wed, 22 Oct 2014 04:36:16 +0000 (00:36 -0400)]
Document gtk_sidebar_get_stack
Matthias Clasen [Wed, 22 Oct 2014 04:34:41 +0000 (00:34 -0400)]
Document gtk_printer_option_set_get_groups
Matthias Clasen [Wed, 22 Oct 2014 04:10:49 +0000 (00:10 -0400)]
Fix docs for gtk_settings_set_property_value
Matthias Clasen [Wed, 22 Oct 2014 04:06:53 +0000 (00:06 -0400)]
Fix docs for gtk_css_provider_load_from_resource
Matthias Clasen [Wed, 22 Oct 2014 04:05:09 +0000 (00:05 -0400)]
Add all sidebar API to the docs
Matthias Clasen [Wed, 22 Oct 2014 04:03:52 +0000 (00:03 -0400)]
Add new papersize api to the docs
Matthias Clasen [Wed, 22 Oct 2014 03:56:17 +0000 (23:56 -0400)]
Add a 3.16 index
We have new GDK api already.
Matthias Clasen [Wed, 22 Oct 2014 03:46:11 +0000 (23:46 -0400)]
Skip GdkX11GLContext in some object tests
Since it can't be constructed without specifying a GdkWindow,
which we don't have here.
Matthias Clasen [Wed, 22 Oct 2014 03:39:05 +0000 (23:39 -0400)]
GL: Follow naming conventions
All the GDK type defines are GDK_TYPE_..., so follow this
pattern for the GLContext subclasses as well.
Benjamin Otte [Wed, 22 Oct 2014 01:38:20 +0000 (03:38 +0200)]
cssnodedeclaration: Fix src/dest swap in memmove()
The main cause here were the wrong style classes being removed, such as
"message-dialog" instead of "csd" for GtkMessageDialog.
Lapo Calamandrei [Tue, 21 Oct 2014 18:35:02 +0000 (20:35 +0200)]
Adwaita: use -gtk-icon-source: none on paned...
...to get rid of the handle decoration istead of setting a transparent
background and abuse a background image for the background color.
Benjamin Otte [Tue, 21 Oct 2014 18:30:20 +0000 (20:30 +0200)]
modelbutton: Fix up for style context changes
- Don't do work anymore that's done in GtkButton
- Don't do a save/restore just to set the state, instead set the state
in the right places.
Benjamin Otte [Tue, 21 Oct 2014 18:30:07 +0000 (20:30 +0200)]
inspector: Add missing directory when scanning for themes
Lapo Calamandrei [Tue, 21 Oct 2014 14:34:42 +0000 (16:34 +0200)]
Adwaita: colorswatch on selected elements style fix
Lapo Calamandrei [Tue, 21 Oct 2014 13:36:22 +0000 (15:36 +0200)]
Adwaita: axes borders of notebooks inside frame
This is what the old adwaita did, not having a better solution for
removing double borders, better to have this back even if it can
be problematic in certain cases.
Lapo Calamandrei [Tue, 21 Oct 2014 11:51:22 +0000 (13:51 +0200)]
Adwaita: properly fix places sidebar
Forgot to treat treeview background... Some code refactoring in
the process.
Andika Triwidada [Tue, 21 Oct 2014 12:46:13 +0000 (12:46 +0000)]
Updated Indonesian translation
Ryan Lortie [Mon, 20 Oct 2014 21:16:22 +0000 (17:16 -0400)]
wayland: don't init if XDG_RUNTIME_DIR missing
wayland doesn't strictly follow the XDG_RUNTIME_DIR spec by falling back
to another directory in case the runtime dir is not properly set.
When this variable is unset, wayland will log an error to us, which we
treat as fatal, aborting the entire program.
Skip ourselves all the trouble and don't try to bring up the wayland
backend when we know it will fail in this way.
https://bugzilla.gnome.org/show_bug.cgi?id=738873
Adel Gadllah [Tue, 21 Oct 2014 11:58:28 +0000 (13:58 +0200)]
gdkglcontext-x11: Fix pixmap creation
Always use NPOT textures
https://bugzilla.gnome.org/show_bug.cgi?id=738670
Alexander Larsson [Tue, 21 Oct 2014 11:51:24 +0000 (13:51 +0200)]
x11 glcontext: Always use RGBA texture format, as we use alphas
Lapo Calamandrei [Tue, 21 Oct 2014 11:25:17 +0000 (13:25 +0200)]
Adwaita: wide paned separator style
...paned separator decoration fixed in the process.
Bastien Nocera [Wed, 17 Sep 2014 16:42:57 +0000 (18:42 +0200)]
wayland: Don't try to create a subsurface again
We already did that inside gdk_wayland_window_create_surface() that's
called 2 lines above.
https://bugzilla.gnome.org/show_bug.cgi?id=738912
Bastien Nocera [Tue, 14 Oct 2014 14:47:11 +0000 (16:47 +0200)]
gtkwidget: Fix typo in comment
Benjamin Otte [Tue, 21 Oct 2014 03:52:05 +0000 (05:52 +0200)]
css: Add "-gtk-icon-source: builtin"
... and make it the default. This takes over the meaning from "none" for
this property in that it draws the fallback builtin image.
"none" now literally means no image will be drawn.
Benjamin Otte [Tue, 21 Oct 2014 03:47:15 +0000 (05:47 +0200)]
stylecontext: fix icon-source extents computation
for the builtin image or invalid matrix case. We used to return invalid
memory in those cases. And that was not good.
Benjamin Otte [Tue, 21 Oct 2014 03:15:37 +0000 (05:15 +0200)]
render: We use CHECKED now, not ACTIVE
Update docs and custom rendering of checkmarks and radio buttons
Matthias Clasen [Tue, 21 Oct 2014 02:13:51 +0000 (22:13 -0400)]
GtkScrolledWindow: Add documentation
Document the new overlay scrolling APIs, and add some more
documentation for the other touch support: kinetic scrolling
and overshoot.
Matthias Clasen [Thu, 9 Oct 2014 21:03:52 +0000 (17:03 -0400)]
Port the overlayscroll example
Make the overlayscroll example use the overlay scrolling that is
now built into GtkScrolledWindow, instead of the manual prototype.
Matthias Clasen [Thu, 9 Oct 2014 03:37:29 +0000 (23:37 -0400)]
Add some overlay scrollbar theming to Adwaita
Matthias Clasen [Thu, 9 Oct 2014 03:34:32 +0000 (23:34 -0400)]
GtkScrolledWindow: Add overlay scrollbars
This commit adds a mode to GtkScrolledWindow in which it puts
narrow, auto-hiding scrollbars over the content, instead of
allocating room for the scrollbars outside of the content. We
use traditional scrollbars if we find a mouse or if overlay
scrolling has explicitly turned off.
For test purposes, GTK_TEST_TOUCHSCREEN can be used to get
overlay scrolling even in the presence of a mouse. The
environment variable GTK_OVERLAY_SCROLLING can also be used
to force overlay scrolling on or off.
Matthias Clasen [Sun, 5 Oct 2014 03:37:11 +0000 (23:37 -0400)]
Add an experiment for overlay scrollbars
This is just meant as a prototype for how we can show a
scroll position indicator for touch. This uses GTK_POLICY_EXTERNAL
to hide the scrolled windows scrollbar while still allowing
scrolling.
Matthias Clasen [Sun, 5 Oct 2014 21:29:32 +0000 (17:29 -0400)]
GtkRange: Add a style class during dragging
This will be used to identify a scrollbar is being dragged - we
don't actually need the style class; another way to keep track
of the dragging status would be ok too.
Benjamin Otte [Tue, 21 Oct 2014 00:06:46 +0000 (02:06 +0200)]
stylecontext: Handle querying the wrong state better
When a getter function (like get_color()) is called and the passed in
state doesn't match the current state returned via get_state(), we used
to do a trick: We called save()/set_state() on the context before
getting the values.
Unfortunately, since
3a337156d11a86c7a88f1f30a09276fdf6f63008 this
has the unfortunate side effect that it also creates a child element.
This breaks various old codebases (spinbutton has been fixed in
998feeb2bc3e37275cfe915e128179d2704ca9c8, Webkit is fixed in
https://bugs.webkit.org/show_bug.cgi?id=137803 ) unfortunately.
So instead, look up the values manually ensuring that no child element
is created but the correct state is used.
Benjamin Otte [Mon, 29 Sep 2014 01:15:44 +0000 (03:15 +0200)]
stylecontext: Return a ref in lookup_values_for_state
This will be necessary when we stop caching values for lookups with the
"wrong" state.
Benjamin Otte [Tue, 21 Oct 2014 00:29:03 +0000 (02:29 +0200)]
computedvalues: Add to_string() and print() functions
The functions are unused. But they are very convenient to use from a
debugger, if you know what I mean...
Benjamin Otte [Sun, 19 Oct 2014 19:04:48 +0000 (21:04 +0200)]
stylecontext: Don't copy CSS values on context_save()
Keeping them is a bad idea now where the widget paths are actually
changed by a save(). And almost all of the time, state or style classes
will be changed anyway.
Looking them up again is just a hash table lookup anyway.
Benjamin Otte [Sat, 18 Oct 2014 04:06:28 +0000 (06:06 +0200)]
stylecontext: Use node declaration in hash
Don't use the StyleInfo anymore.
Benjamin Otte [Sat, 18 Oct 2014 03:45:21 +0000 (05:45 +0200)]
stylecontext: Split out functionality into custom object
GtkCssNodeDeclaration is a new struct with copy-on-write semantics.
It encapsulated the properties used to define a node in the CSS tree.
The idea is to use it in various places for caching, in particular as
key in hash tables.
Matthias Clasen [Tue, 21 Oct 2014 00:54:31 +0000 (20:54 -0400)]
widget-factory: Example for edge-overshot
For extra fun, make some noise.
Matthias Clasen [Mon, 20 Oct 2014 22:44:56 +0000 (18:44 -0400)]
widget-factory: Add a wide-handle example
Andika Triwidada [Mon, 20 Oct 2014 18:44:26 +0000 (18:44 +0000)]
Updated Indonesian translation
Carlos Garnacho [Sun, 12 Oct 2014 12:29:24 +0000 (14:29 +0200)]
scrolledwindow: Add ::edge-overshot signal
This signal is emitted whenever user scrolling hits the overshoot
edge in the given direction. May be useful to add "reload" or "load
more" behaviors in apps.
https://bugzilla.gnome.org/show_bug.cgi?id=738534
Lapo Calamandrei [Mon, 20 Oct 2014 13:22:42 +0000 (15:22 +0200)]
Adwaita: GtkPlacesSidebar treeview text color fix
With my latest changes we have a darker text color for views and
entries (which I assume are content), the places sidebar is totally
chrome though so it needs the chrome text color back.
Daniel Mustieles [Mon, 20 Oct 2014 13:08:33 +0000 (15:08 +0200)]
Updated Spanish translation
Daniel Mustieles [Mon, 20 Oct 2014 13:01:35 +0000 (15:01 +0200)]
Updated Spanish translation
Matthias Clasen [Mon, 20 Oct 2014 11:32:42 +0000 (07:32 -0400)]
GtkPaned: Add a "wide-handle" property
This can be used by applications to indicate that a paned is expected
to be actively used by the users for configuring the UI, and needs
a prominent handle.
https://bugzilla.gnome.org/show_bug.cgi?id=738860
Matthias Clasen [Mon, 20 Oct 2014 03:30:49 +0000 (23:30 -0400)]
Add GtkGLArea fully to docs
It was missing from the type list.
Matthias Clasen [Mon, 20 Oct 2014 03:28:34 +0000 (23:28 -0400)]
Improve tooltip-text/markup docs
Clarify priorities between the two,
https://bugzilla.gnome.org/show_bug.cgi?id=681185
Matthias Clasen [Mon, 20 Oct 2014 03:16:06 +0000 (23:16 -0400)]
GtkAboutDialog: Don't shout
Don't use all-caps in the UI - it looks scary.
https://bugzilla.gnome.org/show_bug.cgi?id=671138
Matthias Clasen [Mon, 20 Oct 2014 02:51:21 +0000 (22:51 -0400)]
GtkTooltip: Move nonexported API to a private header
This is our standard practice nowadays.
Matthias Clasen [Mon, 20 Oct 2014 02:42:49 +0000 (22:42 -0400)]
GtkToggleButton: Move nonexported API to a private header
This is our standard practice nowadays.
Matthias Clasen [Mon, 20 Oct 2014 02:33:24 +0000 (22:33 -0400)]
Deprecate gtk_settings_install_property APIs
These are not useful outside GTK+.
Matthias Clasen [Mon, 20 Oct 2014 02:07:19 +0000 (22:07 -0400)]
GtkSpinButton: Simplify code
No need to explicitly specify a parser function, it will be
correctly guessed from the property type.
Matthias Clasen [Mon, 20 Oct 2014 02:06:37 +0000 (22:06 -0400)]
GtkMenuItem: Simplify code
No need to explicitly specify a parser function, it will be
correctly guessed from the property type.
Matthias Clasen [Mon, 20 Oct 2014 01:22:02 +0000 (21:22 -0400)]
Deprecate some GtkSettings api
The gtk_settings_set_...property functions don't really add
anything over g_object_set(), and we never documented them.
Matthias Clasen [Mon, 20 Oct 2014 00:47:05 +0000 (20:47 -0400)]
Clarify GtkSettings documentation
Just recommend g_object_set to override settings. The
gtk_settings_set_..._property functions don't really add
any value.
Matthias Clasen [Mon, 20 Oct 2014 00:03:58 +0000 (20:03 -0400)]
testfilechooser: Test the preview again
There is code in there to show a preview, use it.
Matthias Clasen [Mon, 20 Oct 2014 00:03:42 +0000 (20:03 -0400)]
Forgotten file
Matthias Clasen [Sun, 19 Oct 2014 21:54:28 +0000 (17:54 -0400)]
GtkFileChooser: Make preview update more understandable
Implement Federico's suggestion:
In single-selection mode, just use the selected row,
In multi-selection mode, use the cursor row as long as it is
in the selection.
https://bugzilla.gnome.org/show_bug.cgi?id=154709
Matthias Clasen [Sun, 19 Oct 2014 02:12:54 +0000 (22:12 -0400)]
Add a a drop-in test for the GtkBuilder parser
Piotr Drąg [Sat, 18 Oct 2014 21:45:21 +0000 (23:45 +0200)]
Updated Polish translation
Thomas Lange [Sat, 18 Oct 2014 20:53:03 +0000 (22:53 +0200)]
aboutdialog: Mark strings as translatable
https://bugzilla.gnome.org/show_bug.cgi?id=730893
Sébastien Wilmet [Sat, 18 Oct 2014 16:51:56 +0000 (18:51 +0200)]
docs: add missing symbol in GtkTextView
Sébastien Wilmet [Sat, 18 Oct 2014 12:47:10 +0000 (14:47 +0200)]
docs: documentation for GtkTextBufferClass
It'll most probably be more useful in the near future.
Matthias Clasen [Sat, 18 Oct 2014 17:19:21 +0000 (13:19 -0400)]
Fix the build
Matthias Clasen [Sat, 18 Oct 2014 16:53:30 +0000 (12:53 -0400)]
Fix a few typos
Matthias Clasen [Sat, 18 Oct 2014 16:42:29 +0000 (12:42 -0400)]
GtkWindow: Add a getter for the custom titlebar
This is needed for the glade integration of CSD windows.
Matthias Clasen [Sat, 18 Oct 2014 16:40:18 +0000 (12:40 -0400)]
Work around a pkg-config bug
It doesn't report -I${prefix}/include in cflags, even if .pc
files explicitly put it there. This was breaking the build
outside of a jhbuild shell when libepoxy is in the jhbuild tree
but not in /usr.
Matthias Clasen [Sat, 18 Oct 2014 16:28:42 +0000 (12:28 -0400)]
Some documentation updates
Mention libepoxy in various places as a new dependency, and also
mention Wayland in the build documentation.